package com.fis.hlo.pm.client;

import java.net.URL;

import javax.xml.namespace.QName;

import com.fis.hlo.pm.invcompare.PMInvoicesCompareTransferer;
import com.fis.hlo.pm.invcompare.PMInvoicesCompareTransfererService;
import com.fis.mca.config.Config;
import com.fis.mca.config.ConfigConstant;

public class InvoiceCompareTransfererClient {
	private static final QName SERVICE_NAME = new QName(
			"http://invcompare.pm.hlo.fis.com/",
			"PMInvoicesCompareTransfererService");
	private static final String WSDL_URL = Config
			.getURL(ConfigConstant.PM_INV_COMPARE_PORT_KEY);

	public static PMInvoicesCompareTransferer getService() throws Exception {
		URL url = new URL(WSDL_URL);
		PMInvoicesCompareTransfererService ss = new PMInvoicesCompareTransfererService(
				url, SERVICE_NAME);
		PMInvoicesCompareTransferer port = ss
				.getPMInvoicesCompareTransfererPort();
		return port;
	}
}
